package com.iswust.mianzhoutong.sign.model.dto;

/**
 * @author liushuai
 * @create 2022-07-20 15:00
 */

public class SignReward {





    public enum RewardObject{

        GROWTH_VALUE(0,"成长值"),
        CARBON_COINS(1,"碳币"),
        RAFFLE_CHANCE(2,"抽奖机会"),
        BUS_TICKET(3,"乘车券");
        private  Integer type;
        private  String reward;

        RewardObject(Integer type,String reward) {
            this.type = type;
            this.reward = reward;
        }

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public String getReward() {
            return reward;
        }

        public void setReward(String reward) {
            this.reward = reward;
        }

        @Override
        public String toString() {
            return "RewardObject{" +
                    "type=" + type +
                    ", reward='" + reward + '\'' +
                    '}';
        }
    }
    
    /**
     * 奖品数量
     */
    private  Integer num;
    /**
     * 奖品描述
     */
    private String desc;

    /**
     * 奖励类型对象
     */
    private RewardObject rewardObject ;

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public RewardObject getRewardObject() {
        return rewardObject;
    }

    public void setRewardObject(RewardObject rewardObject) {
        this.rewardObject = rewardObject;
    }

    public SignReward(Integer num, String desc, RewardObject rewardObject) {
        this.num = num;
        this.desc = desc;
        this.rewardObject = rewardObject;
    }

    @Override
    public String toString() {
        return "SignReward{" +
                "num=" + num +
                ", desc='" + desc + '\'' +
                ", rewardObject=" + rewardObject +
                '}';
    }

}
